package com.ysdwl.model;

import java.util.Date;

public class User {
	private int id;
	private String userCode;
	private String userName;
	private String userPassword;
	private int  age;
	private int gender;
	private Date birthday;
	private String phone;
	private String address;
	private int userRole;
	private Date creationDate;
	
	public User(){
		
	}

	
	public User(int id, String userName, int gender, Date birthday, String phone, String address, int userRole) {
		this.id = id;
		this.userName = userName;
		this.gender = gender;
		this.birthday = birthday;
		this.phone = phone;
		this.address = address;
		this.userRole = userRole;
	}


	public User(int id, String userCode, String userName, String userPassword, int age, int gender, Date birthday,
			String phone, String address, int userRole, Date creationDate) {
		super();
		this.id = id;
		this.userCode = userCode;
		this.userName = userName;
		this.userPassword = userPassword;
		this.age = age;
		this.gender = gender;
		this.birthday = birthday;
		this.phone = phone;
		this.address = address;
		this.userRole = userRole;
		this.creationDate = creationDate;
	}

	public User(String userCode, String userName, String uaerPassword, int age, int gender, Date birthday, String phone,
			String address, int userRole, Date creationDate) {
		super();
		this.userCode = userCode;
		this.userName = userName;
		this.userPassword = uaerPassword;
		this.age = age;
		this.gender = gender;
		this.birthday = birthday;
		this.phone = phone;
		this.address = address;
		this.userRole = userRole;
		this.creationDate = creationDate;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String uaerPassword) {
		this.userPassword = uaerPassword;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getUserRole() {
		return userRole;
	}

	public void setUserRole(int userRole) {
		this.userRole = userRole;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", userCode=" + userCode + ", userName=" + userName + ", uaerPassword=" + userPassword
				+ ", age=" + age + ", gender=" + gender + ", birthday=" + birthday + ", phone=" + phone + ", address="
				+ address + ", userRole=" + userRole + ", creationDate=" + creationDate + "]";
	}
	
	

}
